export const useTableConfig = () => {
  return {
    propList: [
      { prop: 'name', label: '菜单名称', 'min-width': '100', slotName: 'name' },
      { prop: 'type', label: '类型', 'min-width': '60', slotName: 'type' },
      { prop: 'url', label: '菜单路径', 'min-width': '120', slotName: 'url' },
      { prop: 'icon', label: '菜单图标', 'min-width': '100', slotName: 'icon' },
      {
        prop: 'permission',
        label: '按钮权限',
        'min-width': '100',
        slotName: 'permission'
      },
      { prop: 'createAt', label: '创建时间', 'min-width': '140', slotName: 'createAt' },
      { prop: 'updateAt', label: '更新时间', 'min-width': '140', slotName: 'updateAt' },
      { prop: 'operate', label: '', 'min-width': '140', slotName: 'operate' }
    ],
    showSelectColumn: false,
    showIndexColumn: false,
    title: '菜单列表',
    handleName: '新建菜单',
    childrenProps: {
      rowKey: 'id',
      treeProp: {
        children: 'children'
      }
    }
  }
}
